//
//  MqInfoSearchTableViewCell.m
//  Meiqi
//
//  Created by TwistedFate on 16/5/25.
//  Copyright © 2016年 KFC. All rights reserved.
//

#import "MqInfoSearchTableViewCell.h"

@implementation MqInfoSearchTableViewCell



- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self) {
        
        _titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(20, 10, kScreenWidth - 40, 20)];
        [_titleLabel setFont:[UIFont fontWithName:@"Helvetica-Bold" size:15]];
        [self.contentView addSubview:_titleLabel];
        
        _smallTextLabel = [[UILabel alloc] initWithFrame:CGRectMake(_titleLabel.left - 5, _titleLabel.bottom + 15, _titleLabel.width, 15)];
        
        [self.contentView addSubview:_smallTextLabel];
        
        _timeLabel = [[UILabel alloc] initWithFrame:CGRectMake(kScreenWidth - 100, _smallTextLabel.bottom + 5, 100, 15)];
        [self.contentView addSubview:_timeLabel];
        
    }
    
    return self;
}


- (void)setModel:(MqInfoListModel *)model{
    
    _titleLabel.text = model.title;
    _smallTextLabel.text = model.smalltext;
    _timeLabel.text = model.newstime;
    
    
}




- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
